<?php
namespace app\home\validate;

use think\Validate;

class NewUserCheck extends Validate
{
    protected $rule = [
        'name' => 'require',
        'educational' => 'require',
        'major' => 'require',
        'position' => 'require',
        'id' => 'require',
    ];

    protected $message = [
        'name.require' => '名称不能为空',
        'educational.require' => '缺少学历',
        'major.require' => '缺少专业',
        'position.require' => '缺少职业',
        'id.require' => '缺少更新条件',
    ];

    protected $scene = [
        'add' => ['name','educational','major','position'],
        'edit' => ['id','name','educational','major','position'],
    ];
}
